package com.asa.zk.publishSubscribe;

import com.alibaba.fastjson.JSONObject;
//import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.io.Serializable;

/**
 * create by 尼恩 @ 疯狂创客圈
 **/
@Slf4j
//@Data
public class ConfigItem implements Serializable {

    private String type;
    private JSONObject data;

    public String getValue(String key) {
        Object v = data.get(key);
        return v.toString();
    }

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public JSONObject getData() {
		return data;
	}

	public void setData(JSONObject data) {
		this.data = data;
	}
    
    
    
}
